/**
 * A class to pass results properly to 
 * AsyncTask objects. 
 * 
 * @author Alican Ozgoren
 * @version 12/14/2012
 */

package edu.brockport.shuttleapp;

import java.util.Vector;

public class MyResult 
{
	private int resultCode;
	private Vector resultList;
	private String resultMessage;
	
	//----------------------------------------------------------
	public MyResult(int resultCode, Vector resultList, String resultMessage)
	{
		this.resultCode = resultCode;
		this.resultList = resultList;
		this.resultMessage = resultMessage;
	}
	
	//----------------------------------------------------------
	public int getResultCode()
	{
		return resultCode;
	}
	
	//----------------------------------------------------------
	public Vector getResult()
	{
		return resultList;
	}
	
	//----------------------------------------------------------
	public String getResultMessage()
	{
		return resultMessage;
	}
	
	//----------------------------------------------------------
	public MyResult getInstance()
	{
		if(this != null)
			return this;
		else
			return null;
	}

}
